package action

import (
	"fmt"
	"ginfwk/adapter/facade/cmd/action/user"
	"github.com/spf13/cobra"
)

type Action struct {
	user.AdminUser
}

func (r *Action) Register(cmd *cobra.Command) {
	actionCmd := &cobra.Command{
		Use:   "action",
		Short: "Run cmd action",
		Long:  `Run cmd actions`,
		Run: func(cmd *cobra.Command, args []string) {
			fmt.Printf("run cmd action success..., args: %#v\n", args)
		},
	}
	r.AdminUser.Register(actionCmd)
	cmd.AddCommand(actionCmd)
}
